﻿@model IEnumerable<TS2015.Models.TbTinTuc> 

@if (Model != null && Model.Count() > 0)
{
    <div class="main-list-item">
        <div class="col-md-12">
            <label>@Model.First().TbTheLoai.TenTheLoai</label>
            <ul class="list-item">
                @foreach (var item in Model)
                {
                    <li class="media">
                        <a class="media-left" href="#">
                            <img src='~/Uploads/img/@(item.AnhDaiDien??"default.png")' class="img-responsive" style="max-width:130px;border-radius: 1px;" alt="image">
                        </a>
                        <div class="media-body">
                            <a class="media-heading" href="/tin-tuc/@(DuLieuChung.NonUnicode(item.TieuDe) + "-" + item.MaTinTuc)">
                                @item.TieuDe
                            </a>
                            <!--<p>@item.MoTa</p>-->
                            <div class="info">
                                <i class="glyphicon glyphicon-calendar"> @item.NgayDang.ToShortDateString()</i>
                                <i class="glyphicon glyphicon-eye-open"> @item.LuotXem</i>
                            </div>
                        </div>
                    </li>                 
                }
            </ul>
        </div>
    </div>
}